<!DOCTYPE>
<html>
  <head>
    <script src="CheckChrome.js"></script>
    <style>
      body { 
        font-size: 48px;
        text-align: center; 
      }
      #bad  { position: absolute; 
              background-color: red;
              top:      0;
              left:     0;
              right:    0;
              bottom:   0;
              display:  none;
      }
      #good { display: block 
              background-color: green; }
    </style>
  </head>
  <body>
    <div id="bad">BAD!</div>
    <script>
      function check(ok) { 
        console.log("Result is " + ok);
        if (!ok) {
          document.getElementById("bad").style.display = "block";
          console.log("Stop loading of window");
          window.stop();
        }
      }
      var c = new ChromeChecker(check);
    </script>
    <div id="good">All is good</div>
  </body>
</html>


